// API响应类型
export interface ApiResponse<T = any> {
  code: number
  message: string
  data: T
}

// 用户相关类型
export interface User {
  id: number
  username: string
  realName: string
  role: string
  groupId: number
  groupName?: string
  phone: string
  remark: string
  avatarHash?: string
  createTime: string
  updateTime: string
}

// 车间相关类型
export interface Group {
  id: number
  name: string
  type: number
  createTime: string
  updateTime: string
}

// 工作记录相关类型
export interface WorkRecord {
  id: number
  userId: number
  type: number
  workItemId: number
  workItemName: string
  quantity: number
  totalAmount: number
  status: number
  createTime: string
  updateTime: string
  remark: string
}

// 考勤记录相关类型
export interface AttendanceRecord {
  id: number
  userId: number
  type: number
  startTime: string
  endTime: string
  duration: number
  status: number
  createTime: string
  updateTime: string
  remark: string
} 